from django.shortcuts import render
from rest_framework.generics import ListAPIView

from apps.category.models import CategoryModel
from apps.category.serializers import CategorySerializers


class CategoryView(ListAPIView):
    queryset = CategoryModel.objects.all()
    serializer_class = CategorySerializers
